<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta http-equiv="Content-language" content="es-VE" />
		<meta name="author" content="Asociaci&oacute;n de Scouts de Venezuela" />
		<meta name="copyright" content="Asociaci&oacute;n de Scouts de Venezuela, 2008" />
		<meta name="description" content="Registro Nacional de Actividades." />
		<meta name="keywords"
			content="Scout, Scouts, Registro Nacional de Actividades, Concurso Nacional de Vida al Aire Libre, Concurso Nacional de Accion Comunitaria" />
        <link rel="shortcut icon" href="http://www.scoutsvenezuela.org.ve/imagenes/lis_titul.ico" type="image/x-icon" />
		<link rel="Home" href="http://www.scoutsdevenezuela.org.ve/rnaasv/" title="Registro Nacional de Actividades" />
		<link rel="Index" href="http://www.scoutsdevenezuela.org.ve/rnaasv/" title="Registro Nacional de Actividades" />
		<link rel="Top" href="http://www.scoutsdevenezuela.org.ve/rnaasv/" title="Registro Nacional de Actividades" />
		<link rel="Copyright" href="http://www.scoutsdevenezuela.org.ve/" />
		<link rel="Author" href="http://www.scoutsdevenezuela.org.ve/rnaasv/creditos/" />
        <link rel="stylesheet" type="text/css" href="{$dojoBaseUrl}dijit/themes/tundra/tundra.css" />
        <link rel="stylesheet" type="text/css" href="{$dojoBaseUrl}dojo/resources/dojo.css" />
        <link rel="stylesheet" type="text/css" media="screen" href="{$baseUrl}/public/styles/site.css" />
        <link rel="stylesheet" type="text/css" media="screen" href="{$baseUrl}/public/styles/menu.css" />
        <link rel="stylesheet" type="text/css" media="screen" href="{$baseUrl}/public/styles/bluetabs.css" />
        <script type="text/javascript" src="{$dojoUrl}" djConfig="parseOnLoad: true, isDebug: true, usePlainJson: true"></script>
        <script type="text/javascript">
			var baseUrl = '{$baseUrl}';
			dojo.require("dojo.parser");
			dojo.require("dijit.layout.ContentPane");
			dojo.require("dijit.layout.BorderContainer");
			dojo.require("dijit.ProgressBar");
			dojo.require("dijit.Dialog");
			dojo.require("dijit.TitlePane");
			dojo.require("dijit.form.Form");
			dojo.require("dijit.form.TextBox");
			dojo.require("dijit.form.Textarea");
			dojo.require("dijit.form.NumberTextBox");
			dojo.require("dijit.form.ValidationTextBox");
        </script>
        <title>{$title|escape}</title>
    </head>
    <body class="tundra">
        <div dojoType="dijit.layout.BorderContainer" id="mainContainer" design="headline">
            <div dojoType="dijit.layout.ContentPane" region="top" id="header">
                <img src="{$baseUrl}/public/images/banner-superir-cssn.jpg" alt="ASV - CSSN" align="top" />
                <h1>Registro Nacional de Actividades Scout</h1>
            </div>
            <div dojoType="dijit.layout.ContentPane" region="left" id="leftZone">
                {if empty($user)}
                <div dojoType="dijit.TitlePane" id="sesionZone" title="Sesi&oacute;n de Usuario">
                    <form dojoType="dijit.form.Form" id="sesionForm" method="post" action="{$baseUrl}/auth/login">
                        <table id="sesionFormTable">
                            <tr>
                                <th>
                                    Credencial:
                                </th>
                            </tr>
                            <tr>
                                <td>
                                    <input id="credencial" name="credencial" type="text" maxlength="7" style="width: 150px" value="{$this->credencial|escape}" dojoType="dijit.form.ValidationTextBox"{literal} regExp="[1-2]\d{6}"{/literal} promptMessage="Introduzca una credencial v&aacute;lida" required="true" invalidMessage="Credencial Inv&aacute;lida" />
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    Contrase&ntilde;a:
                                </th>
                            </tr>
                            <tr>
                                <td>
                                    <input id="contrasena" name="contrasena" type="password" size="10" maxlength="10" dojoType="dijit.form.TextBox" required="false" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <input type="submit" class="boton" value="Iniciar Sesi&oacute;n" onclick="iniciarSesion();"/>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <input type="button" class="boton" onclick="inscripcion();" value="Inscripci&oacute;n" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <input type="button" class="boton" onclick="recordarContrasena();" value="Recordar Contrase&ntilde;a" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <input type="button" class="boton" onclick="validacion();" value="Introducir Clave Validaci&oacute;n" />
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
				{else}
                <div dojoType="dijit.TitlePane" id="sesionZone" title="Datos de Usuario">
	                <table id="userTable">
	                    <tr><td>{$user->credencial|escape}</td></tr>
	                    <tr><td>{$user->Nombre|escape}</td></tr>
						{foreach item=rol from=$user->roles}
						<tr><td>{$rol->Cargo|escape}</td></tr>
						<tr><td>{$rol->Unidad|escape}</td></tr>
						<tr><td>{$rol->Region|escape}</td></tr>
						{if !empty($rol->Distrito)}
						<tr><td>{$rol->Distrito|escape}</td></tr>
						{/if}
						{if !empty($rol->Grupo)}
						<tr><td>{$rol->Grupo|escape}</td></tr>
						{/if}
						<tr><td>{$rol->Ultimo_Registro|escape}</td></tr>
						{foreachelse}
						<tr><td>No posee cargo activo</td></tr>
						{/foreach}
	                </table>
					<input type="button" class="boton" onclick="cerrarSesion();" value="Cerrar sesi&oacute;n" />
                </div>
				{/if}
				{include file="menu.tpl"}
            </div>
            <div dojoType="dijit.layout.ContentPane" region="right" id="rightZone">
            </div>
            <div dojoType="dijit.layout.ContentPane" region="center" id="content">
	            <div id="headerPage">
					<h2>{$this->title|escape}</h2>
				</div>
                {if isset($mensajesValidacion)}
                <ul id='mensajesValidacion'>
                    {foreach from=$mensajesValidacion item=message name=msgValidacion} 
                    <li>
                        {$message|escape}
                    </li>
                    {/foreach}
                </ul>
                {/if}
                {include file="$tpl_name"}
            </div>
            <div dojoType="dijit.Dialog" id="cargandoDatosDialog" title="Cargando Datos">
                <div dojoType="dijit.ProgressBar" style="width: 300px" jsId="cargandoDatosProgressBar" id="cargandoDatosProgressBar">
                </div>
            </div>
            <div dojoType="dijit.layout.ContentPane" region="bottom" id="footer">
				<script type="text/javascript"><!--
				google_ad_client = "pub-2504896015027464";
				/* rnaasv728x15, creado 17/06/08 */
				google_ad_slot = "6456522584";
				google_ad_width = 728;
				google_ad_height = 15;
				//-->
				</script>
				<script type="text/javascript"
				src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
				</script> 
				<div>           
	                <img src="{$baseUrl}/public/images/UNI2.GIF" width="99" height="28" align="middle" />
	                | <a href="{$baseUrl}/contactanos">Cont&aacute;ctanos</a>
	                | &copy;2008 <a href="http://www.scoutsvenezuela.org.ve">Asociaci&oacute;n de Scouts de Venezuela</a>
				</div>
            </div>
			<script type="text/javascript" src="{$baseUrl}/public/scripts/varios.js"></script>
			<script type="text/javascript" src="{$baseUrl}/public/scripts/Select.js"></script>
			<script type="text/javascript" src="{$baseUrl}/public/scripts/cargando.js"></script>
        </body>
</html>
        